From: Sebastian Keller Date: Wed, 10 Mar 2021 15:39:53 +0000 (+0100) Subject: st/texture-cache: Don't use content size request mode for surface icons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~115 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=07f2d32087aee6e21963d820554bfa1439f02d41;p=gnome-shell.git st/texture-cache: Don't use content size request mode for surface icons While most GIcons passed to this function cause a StImageContent to be created with the requested size, cairo surface based icons already are passed as StImageContent with a preferred size corresponding to the size of the surface they were created from. As a result icons of window backed applications were never scaled up like the other icons. Fix this by ignoring the content size for these case. Part-of: --- diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c index 4e878a722..0ed3df5e7 100644 --- a/src/st/st-texture-cache.c +++ b/src/st/st-texture-cache.c @@ -983,7 +983,6 @@ st_texture_cache_load_gicon (StTextureCache *cache, if (ST_IS_IMAGE_CONTENT (icon)) { return g_object_new (CLUTTER_TYPE_ACTOR, - "request-mode", CLUTTER_REQUEST_CONTENT_SIZE, "width", actor_size, "height", actor_size, "content", CLUTTER_CONTENT (icon),